package com.zmn.oms.model.es;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zmn.oms.common.constant.OrderConsts;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @ClassName EsOrderWorkReview
 * @description:
 * @author: wangyanci
 * @create: 2021-08-17 16:20
 * @Version 1.0
 **/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class EsOrderWorkReview {

    /**
     * 分类：10：退款单审核
     * @see OrderConsts#OMS_ORDER_REVIEW_REFUND
     */
    private Integer reviewType;

    /**
     * 审核状态 1.待审核 2. 审核成功 3. 审核失败
     * @see OrderConsts#OMS_ORDER_REVIEW_STATUS_CHECK
     */
    private Integer reviewStatus;

    /**
     * 审核人
     */
    private String reviewer;

    /**
     * 审核人id
     */
    private String reviewerId;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date reviewTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    /**
     * 审批流的唯一码
     */
    private String processInstanceId;
}